package com.test.mapper;

import com.test.domain.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
* @author Administrator
* @description 针对表【user(用户表)】的数据库操作Mapper
* @createDate 2023-10-16 14:35:20
* @Entity com.test.domain.User
*/
@Mapper
public interface UserMapper {
	
	/**
	 * 登录业务
	 * @param username 账号
	 * @param password 密码
	 * @return User
	 */
	User login(@Param("username") String username,@Param("password") String password);
	
	
	/**
	 * 检查账号是否存在
	 * @param username 账号
	 * @return User
	 */
	User selectByUsername(@Param("username") String username);
}
